import request from '@/utils/request'

export function listLeaseMaterials(query) {
  return request({
    url: '/system/houseLease/materials/list',
    method: 'get',
    params: query
  })
}

export function getLeaseMaterial(materialId) {
  return request({
    url: `/system/houseLease/materials/${materialId}`,
    method: 'get'
  })
}

export function reviewLeaseMaterial(materialId, data) {
  return request({
    url: `/system/houseLease/materials/${materialId}/review`,
    method: 'put',
    data
  })
}

export function deleteLeaseMaterials(materialIds) {
  return request({
    url: `/system/houseLease/materials/${materialIds}`,
    method: 'delete'
  })
}
